package com.nimitz.modules.demo.service.impl;

import com.nimitz.modules.demo.domain.DemoUser;
import com.nimitz.modules.demo.mapper.DemoUserMapper;
import com.nimitz.modules.demo.service.IDemoUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DemoUserServiceImpl
 * @Author Vincent
 * @Date 2021-08-19-16:58
 * @PackageName com.nimitz.modules.demo.service.impl
 * @Description 演示模块-用户服务层实现类
 * @Version 1.0.0
 */
@Service
public class DemoUserServiceImpl implements IDemoUserService {

    @Autowired
    private DemoUserMapper demoUserMapper;

    /**
     * 查询所有用户信息（含搜索）
     *
     * @param demoUser 用户信息
     * @return 用户信息集合
     */
    @Override
    public List<DemoUser> selectDemoUserList(DemoUser demoUser) {
        return demoUserMapper.selectDemoUserList(demoUser);
    }

    @Override
    public int insertDemoUser(DemoUser demoUser) {
        return 0;
    }

    @Override
    public int updateDemoUser(DemoUser demoUser) {
        return 0;
    }

    @Override
    public int deleteDemoUserByUserId(Long demoUserId) {
        return 0;
    }
}
